<?php

namespace App\Model\Marketing;

use Illuminate\Database\Eloquent\Model;

class Product extends Model
{
    const DISABLE = 0;      #禁用的
    const PUBLISHED = 2;    #已发布
    const UNPUBLISHED = 1;  #未发布

    # 数据表
    protected $table = 'products';

    # PK
    protected $primaryKey = 'id';

    # fillable fields
    protected $fillable = [
        'title',
        'intro',
        'cover',
        'price',
        'master',
        'duration',
        'schedules',
        'coursetype',
        'type',
        'sold',
        'visited',
        'status',
        'isHot'
    ];

}
